package com.ruoyi.yn.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.yn.domain.YnRecyclingWeight;
import com.ruoyi.yn.vo.YnRecyclingWeightVo;
import com.ruoyi.yn.mapper.YnRecyclingWeightMapper;
import com.ruoyi.yn.service.IYnRecyclingWeightService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 回收重量Service业务层处理
 *
 * @author Ming
 * @date 2023-04-25
 */
@Service
public class YnRecyclingWeightServiceImpl extends ServiceImpl<YnRecyclingWeightMapper, YnRecyclingWeight> implements IYnRecyclingWeightService {

    @Override
    public TableDataInfo<YnRecyclingWeightVo> queryList(YnRecyclingWeightVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<YnRecyclingWeightVo> queryAll(YnRecyclingWeightVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public YnRecyclingWeightVo queryById(String id) {
        return this.baseMapper.queryById(id);
    }
}
